<?php
class UserUpdateHeadImgAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     *
     * 更新玩家头像
     * 
     * @param $userId
     * @param $headImgId
     * @return SzResponse
     */
    public function execute($userId, $headImgId)
    {
        UserService::get()->updateHeadIcon($userId, $headImgId);
        return $this->buildResponse(array(
            0 => 0
        ));
    }
}